-
Notifications
You must be signed in to change notification settings - Fork 269
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🌐 Spherical coordinates #1008
🌐 Spherical coordinates #1008
Conversation
Signed-off-by: Louise Poubel <[email protected]>
Signed-off-by: Louise Poubel <[email protected]>
Signed-off-by: Louise Poubel <[email protected]>
Signed-off-by: Louise Poubel <[email protected]>
…ionrobotics/ign-gazebo into chapulina/6/spherical_coords Signed-off-by: Louise Poubel <[email protected]>
Signed-off-by: Louise Poubel <[email protected]>
Signed-off-by: Louise Poubel <[email protected]>
Codecov Report
@@ Coverage Diff @@
## main #1008 +/- ##
==========================================
- Coverage 63.47% 63.37% -0.10%
==========================================
Files 241 242 +1
Lines 19577 19715 +138
==========================================
+ Hits 12426 12495 +69
- Misses 7151 7220 +69
Continue to review full report at Codecov.
|
Signed-off-by: Louise Poubel <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Everything worked as expected. I just found a tiny typo in the tutorial. I have just one comment:
Let's say I follow the tutorial and spawn an entity. If I now set the world origin's spherical coordinates with the GUI or the service to a different value, shouldn't all entities be moved as a side effect?
Signed-off-by: Louise Poubel <[email protected]>
I added a note about this to the tutorial in 76495a7. It would be tough to move the entire world, and I'm not sure this is something that the user may always want. I think in the future, if there's need for it, we could add an option that enables this. For now, changing the world origin only affects subsequent commands, like spawns and moves. |
Signed-off-by: Louise Poubel <[email protected]>
Signed-off-by: Louise Poubel <[email protected]>
Signed-off-by: Louise Poubel <[email protected]> Signed-off-by: William Lew <[email protected]>
🎉 New feature
Closes #981
Requires
Summary
Add support for spherical coordinates (latitude / longitude). Users are able to set the lat / lon for the world origin, and query the lat / lon for other entities with respect to that.
TODO
Under consideration:
I'll open this PR for review when the above have been sorted out.
Test it
Try changing it through the SDF, the component inspector, and the service.
Checklist
codecheck
passed (See contributing)Note to maintainers: Remember to use Squash-Merge
🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸